import {t, api, message, bs} from "@/service/index.js"


export default {
    url: {
        find: "/menu/find",
        edit: "/menu/edit",
        del: "/menu/del",
    },
    find(data) {
        return api.post(this.url.find,data);
    },
    edit(data){
        const d = Object.assign({},data)
        delete d.rules
        return api.post(this.url.edit,d)
    },
    del(data){
        return api.post(this.url.del,data)
    }
}